package com.js.purs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.js.purs.mapper.PurBindProjectMapper;
import com.js.purs.domain.PurBindProject;
import com.js.purs.service.IPurBindProjectService;

/**
 * 招标项目Service业务层处理
 * 
 * @author lzq
 * @date 20240625
 */
@Service
public class PurBindProjectServiceImpl implements IPurBindProjectService 
{
    @Autowired
    private PurBindProjectMapper purBindProjectMapper;

    /**
     * 查询招标项目
     * 
     * @param bindCode 招标项目主键
     * @return 招标项目
     */
    @Override
    public PurBindProject selectPurBindProjectByBindCode(String bindCode)
    {
        return purBindProjectMapper.selectPurBindProjectByBindCode(bindCode);
    }

    /**
     * 查询招标项目列表
     * 
     * @param purBindProject 招标项目
     * @return 招标项目
     */
    @Override
    public List<PurBindProject> selectPurBindProjectList(PurBindProject purBindProject)
    {
        return purBindProjectMapper.selectPurBindProjectList(purBindProject);
    }

    /**
     * 新增招标项目
     * 
     * @param purBindProject 招标项目
     * @return 结果
     */
    @Override
    public int insertPurBindProject(PurBindProject purBindProject)
    {
        return purBindProjectMapper.insertPurBindProject(purBindProject);
    }

    /**
     * 修改招标项目
     * 
     * @param purBindProject 招标项目
     * @return 结果
     */
    @Override
    public int updatePurBindProject(PurBindProject purBindProject)
    {
        return purBindProjectMapper.updatePurBindProject(purBindProject);
    }

    /**
     * 批量删除招标项目
     * 
     * @param bindCodes 需要删除的招标项目主键
     * @return 结果
     */
    @Override
    public int deletePurBindProjectByBindCodes(String[] bindCodes)
    {
        return purBindProjectMapper.deletePurBindProjectByBindCodes(bindCodes);
    }

    /**
     * 删除招标项目信息
     * 
     * @param bindCode 招标项目主键
     * @return 结果
     */
    @Override
    public int deletePurBindProjectByBindCode(String bindCode)
    {
        return purBindProjectMapper.deletePurBindProjectByBindCode(bindCode);
    }

    @Override
    public List<PurBindProject> selectPurBindProjectListNewBest(PurBindProject purBindProject) {
        return purBindProjectMapper.selectPurBindProjectListNewBest(purBindProject);
    }
}
